x86/hvm_event: fix uninitialized struct field usage introduced by c/s f5365e6
authorCorneliu ZUZU <czuzu@bitdefender.com>
Thu, 18 Feb 2016 14:08:25 +0000 (15:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Feb 2016 14:09:04 +0000 (15:09 +0100)
commit8e0b74e02656c007455c12d0341a881aee8b13d2
tree0aba760980496a6ee6afdf1a90fde27ca097630b
parent035a4e9ae4d7869a512772e986debea752f85b28
x86/hvm_event: fix uninitialized struct field usage introduced by c/s f5365e6

c/s f5365e6: "xen/vm-events: Move parts of monitor_domctl code to common-side",
introduced a use without initialization issue.
hvm_event_breakpoint calls hvm_event_traps(&req) and if sync is true that
ors some bits into req->flags which was never initialised.
Reported by Coverity Scan.

Initializes req @ hvm_event_breakpoint entry.

Coverity-ID: 1353192
Signed-off-by: Corneliu ZUZU <czuzu@bitdefender.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/event.c